package ltd.entity;

import com.fasterxml.jackson.annotation.JsonTypeInfo;

import javax.persistence.*;

/**
 * Created by chinalin on 2017/4/12.
 */
@JsonTypeInfo(use= JsonTypeInfo.Id.MINIMAL_CLASS, include = JsonTypeInfo.As.PROPERTY)
@Entity
public class GameMsg {

    private int id;				//非自增，非主键
    private String name;
    private String py;
    private String subject0;
    private String subject1;
    private String src;
    private String packagename;
    private String time;
    private String size;
    private int download;
    private int evaluation;
    private int peoples;
    private int charge;
    private int ver;
    private int control;
    private int device;
    private int isnew;
    private int good;
    private int best;
    private int hot;

    public GameMsg() {
        super();
    }

    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name="name",  length=40, nullable=true)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name="py",  length=8, nullable=true)
    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    @Column(name="subject0",  length=40, nullable=true)
    public String getSubject0() {
        return subject0;
    }

    public void setSubject0(String subject0) {
        this.subject0 = subject0;
    }

    @Column(name="subject1",  length=40, nullable=true)
    public String getSubject1() {
        return subject1;
    }

    public void setSubject1(String subject1) {
        this.subject1 = subject1;
    }

    @Column(name="src",  length=40, nullable=true)
    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    @Column(name="package",  length=40, nullable=true)
    public String getPackagename() {
        return packagename;
    }

    public void setPackagename(String packagename) {
        this.packagename = packagename;
    }

    @Column(name="time",  length=20, nullable=true)
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
    @Column(name="size",  length=10, nullable=true)
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    @Column(name="download",  length=20, nullable=true)
    public int getDownload() {
        return download;
    }

    public void setDownload(int download) {
        this.download = download;
    }

    @Column(name="evaluation",  length=20, nullable=true)
    public int getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(int evaluation) {
        this.evaluation = evaluation;
    }

    @Column(name="peoples",  length=20, nullable=true)
    public int getPeoples() {
        return peoples;
    }

    public void setPeoples(int peoples) {
        this.peoples = peoples;
    }

    @Column(name="charge",  length=20, nullable=true)
    public int getCharge() {
        return charge;
    }

    public void setCharge(int charge) {
        this.charge = charge;
    }
    @Column(name="ver",  length=20, nullable=true)
    public int getVer() {
        return ver;
    }

    public void setVer(int ver) {
        this.ver = ver;
    }

    @Column(name="control",  length=20, nullable=true)
    public int getControl() {
        return control;
    }

    public void setControl(int control) {
        this.control = control;
    }

    @Column(name="device",  length=20, nullable=true)
    public int getDevice() {
        return device;
    }

    public void setDevice(int device) {
        this.device = device;
    }

    @Column(name="new",  length=20, nullable=true)
    public int getIsnew() {
        return isnew;
    }

    public void setIsnew(int isnew) {
        this.isnew = isnew;
    }

    @Column(name="good",  length=20, nullable=true)
    public int getGood() {
        return good;
    }

    public void setGood(int good) {
        this.good = good;
    }

    @Column(name="best",  length=20, nullable=true)
    public int getBest() {
        return best;
    }

    public void setBest(int best) {
        this.best = best;
    }

    @Column(name="hot",  length=20, nullable=true)
    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

}
